package guoanmaker.operator.business.model;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/*
 * @description:金融服务审批记录
 * @author:ws
 * @date:2017-12-15 16:50
 */

@Entity
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_operator_approval_record")
public class OperatorApprovalRecord extends IdEntity implements Cloneable{

	private Date approvalTime;//审批时间;
	private String operatorUserName;//审批人---是一个运营人员;
	private int approvalInfo;//审批信息(0:"拒绝" ,1:"同意")
	private String financeProjectRefuse;//拒绝原因
	private String refuseContent;//拒绝内容,若审批信息为"拒绝"，则有拒绝原因；若审批信息为"同意"，则为空
	//@Transient               //不关联数据库
	@ManyToOne(cascade=CascadeType.REFRESH,optional=false)
	@JoinColumn(name = "finance_project_id")
	private PersonalFinanceProjectCopy personalFinanceProjectCopy;//项目id
	
	public Object clone() {
		// TODO Auto-generated method stub
		PersonalFpentrepreneurialExperience stu = null;  
		try{  
			stu = (PersonalFpentrepreneurialExperience)super.clone();  
		}catch(CloneNotSupportedException e) {  
			e.printStackTrace();  
		}  
		return stu; 
	}
}
